<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            fetch('http://localhost:3000/fdata')
                .then(data => {
                    return data.text();
                })
                .then(ret => {
                    // 注意这里得到的才是最终的数据
                    console.log(ret);
                });
        </script>
    </body>
</html>
